import { getUserInfo, setUserInfo } from '@/utils/storage'
export default {
  namespaced: true,
  state () {
    return {
      userInfo: getUserInfo()
    }
  },

  mutations: {
    setUserInfo (state, token) {
      state.userInfo = token
      // 存入storage本地
      setUserInfo(token)
    }
  },

  actions: {

  },

  getters: {

  }

}
